<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增联登渠道信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-unioninfo-add">

            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">联登渠道信息：</label>
                <div class="col-sm-8">
<!--                    <input name="channelCode" class="form-control" type="text" required>-->
                    <div class="col-sm-8">
                        <select name="channelCode" style="width: 100px">
                            <option  th:each="item:${channelInfoList}" th:text="${item.name}" th:value="${item.value}"></option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <p><span style="color: red">说明：</span></p>
                <p><span style="color: red">1.联登类型的渠道才可以添加联登信息</span></p>
                <p><span style="color: red">2.每个联登渠道只能添加一个联登记录信息</span></p>
            </div>

<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label is-required">：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="channelName" class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label is-required">：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="appCode" class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label is-required">：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="appKey" class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label is-required">：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="appSecret" class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "extend/unioninfo"
        $("#form-unioninfo-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-unioninfo-add').serialize());
            }
        }
    </script>
</body>
</html>